Automattic\WooCommerce\Blocks\BlockTemplatesController B

Total Complexity 81
Dependencies 6
Dependents 2
Total lines 491
Lines of code 270
Logical lines of code 157
Comment lines 156
Methods 14
Properties 0

Methods 14

Method Rating Maintainability Complexity Lines of code
add_block_templates()
B
40 19 55
get_block_template_fallback()
A
43 12 47
get_block_templates_from_woocommerce()
A
44 11 43
get_block_file_template()
A
47 8 34
prevent_shortcodes_html_breakage()
S
57 6 16
render_woocommerce_template_part()
S
63 6 9
hide_template_selector_in_cart_checkout_pages()
S
63 6 9
add_plugin_templates_parts_support()
S
63 4 10
add_archive_product_to_eligible_for_fallback_templates()
S
59 2 16
block_template_is_available()
S
65 3 9
init()
S
62 1 10
add_block_template_details()
S
79 1 3
get_block_templates_from_db()
S
75 1 4
get_block_templates()
S
72 1 5